var Join ={
		submit :function(){
			var startTime ="";
			if($("#startTime").val()!=null){
				for(var i=0;i<$("#startTime").val().length;i++){
					
					startTime = startTime +$("#startTime").val()[i]+",";
				}
				startTime = startTime.substring(0, startTime.length-1);
				test.startTime=startTime;
				$.ajax({  
					"dataType" : 'json',  
					"data":{
						"phone":$("#phone").val(),
						"eventId":$("#eventId").val(),
						"startTime":startTime,
						"type":"member"
						
					},
					
					"type" : "POST",  
					"url" : "event/joinNewEvent.json",
					"success" : function(data){
						alert("加入成功！");
						$("#button").hide();
					},
					"error":function(){
						$("#showbox").html("发送失败，系统异常，稍后再试！");
						$("#showdiv").removeClass("alert alert-success margin-bottom-10");
						$("#showdiv").addClass("Metronic-alerts alert alert-danger fade in");
						$("#showdiv").show();
					}
				}); 
			}else{
				
				alert("请选择开始时间！");
			}
			
		}
		
}
var test ={};

$(document).ready(function() {
});
